package com.andnnl.event.source;

import com.andnnl.event.events.Event;
import com.andnnl.event.listener.EventListener;

/**
 * 事件源通用接口
 * Created by chenss on 2021/5/11.
 */
public interface EventSource {
    void addEventListener(EventListener<? extends Event> listener);

    void removeEventListener(EventListener<? extends Event> listener);

    void notifyListeners(Event event);
}
